import request from '@/utils/request'
const api_group = 'friend'
const api_name = 'friend'
export default {
  list() {   
    return request({
      url: `/${api_name}/list`,
      method: 'get'
    })
  },
  like(id,type){
    return request({
      url: `/${api_name}/like/${id}/${type}`,
      method: 'put'
    })
  },  
  mylist() {   
    return request({
      url: `/${api_name}/mylist`,
      method: 'get'
    })
  }
}